#NoTrayIcon

if WinExists("[CLASS:CabinetWClass]", "") Then
	$Window = WinGetTitle("[CLASS:CabinetWClass]", "")
	$Path = ControlGetText("[Class:CabinetWClass]", "", "Edit1")

	$SelectedIndexes = ControlListView($Window, "FolderView", "SysListView321", "GetSelected", 1)

	$FileList = ""

	For $Index In StringSplit($SelectedIndexes, "|", 2)
		$SelectedFile = $Path & "\" & ControlListView($Window, "FolderView", "SysListView321", "GetText", $Index)

		$FileList = $FileList & $SelectedFile & @CRLF
	Next

	ConsoleWrite($FileList)
EndIf